package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 获取订单详情（货源大厅详情）
 *
 * @author yangyang
 * @time 2020-11-20 12:47
 */
public class GetOrderDetailsApi implements IRequestHost, IRequestApi, IRequestType {

    private String TONumber;

    @Override
    public String getApi() {
        return "transportOrder/getOrderDetails";
    }

    @Override
    public String getHost() {
        return MTLConstants.WE_CHAT_URL;
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }

    public GetOrderDetailsApi setTONumber(String TONumber) {
        this.TONumber = TONumber;
        return this;
    }
}
